package com.hzdesk.media.koreabatchmatvector.bean;

import android.util.Log;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Keep;

/**
 * 保存数据库中的视频对象
 * Created by Administrator on 2018/5/23.
 */
@Entity(generateConstructors = false)
public class VideoFile {
    @Id(autoincrement = true)
    private Long id;
    private String name;
    private long createtime;
    private String path;
    private long size;//mb
    private String realname;
    private String secondname;
    //上传标识
    private boolean isUpload;
    //上传状态 false : 暂停 true:上传中
    private boolean uploadState;
    private int progress;

    private String file_id;//文件id

    private String meetingGroup;

    private String meetingName;

    private long meetingTime;
    @Keep
    @Generated(hash = 1449351592)
    public VideoFile(Long id, String name, long createtime, String path, long size,String secondname,String meetingGroup,String meetingName,long meetingTime) {
        this.id = id;
        this.name = name;
        this.createtime = createtime;
        this.path = path;
        this.size = size;
        this.realname = name;
        this.isUpload = false;
        this.uploadState=false;
        this.progress = 0;
        this.secondname=secondname;
        this.file_id="file_id";
        this.meetingGroup=meetingGroup;
        this.meetingName=meetingName;
        this.meetingTime=meetingTime;
    }

    public VideoFile(Long id, String name, long createtime, String path, long size, String realname, String secondname, boolean isUpload, boolean uploadState, int progress, String file_id,String meetingGroup,String meetingName,long meetingTime) {
        this.id = id;
        Log.e("VideoFileDaoUtils", "VideoFile: "+id );
        this.name = name;
        this.createtime = createtime;
        this.path = path;
        this.size = size;
        this.realname = realname;
        this.secondname = secondname;
        this.isUpload = isUpload;
        this.uploadState = uploadState;
        this.progress = progress;
        this.file_id = file_id;
        this.meetingGroup=meetingGroup;
        this.meetingName=meetingName;
        this.meetingTime=meetingTime;
    }

    public VideoFile() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getCreatetime() {
        return this.createtime;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    public String getPath() {
        return this.path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public long getSize() {
        return this.size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public String getRealname() {
        return this.realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }
    public boolean isUpload() {
        return isUpload;
    }
    public void setUpload(boolean upload) {
        isUpload = upload;
    }

    public int getProgress() {
        return progress;
    }
    public void setProgress(int progress) {
        this.progress = progress;
    }

    public boolean getIsUpload() {
        return this.isUpload;
    }

    public void setIsUpload(boolean isUpload) {
        this.isUpload = isUpload;
    }

    public String getSecondname() {
        return this.secondname;
    }

    public void setSecondname(String secondname) {
        this.secondname = secondname;
    }

    public boolean getUploadState() {
        return this.uploadState;
    }

    public void setUploadState(boolean uploadState) {
        this.uploadState = uploadState;
    }


    public String getFile_id() {
        return this.file_id;
    }

    public void setFile_id(String file_id) {
        this.file_id = file_id;
    }

    @Override
    public String toString() {
        return "VideoFile{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", createtime=" + createtime +
                ", path='" + path + '\'' +
                ", size=" + size +
                ", realname='" + realname + '\'' +
                ", secondname='" + secondname + '\'' +
                ", isUpload=" + isUpload +
                ", uploadState=" + uploadState +
                ", progress=" + progress +
                ", file_id='" + file_id + '\'' +
                '}';
    }

    public String getMeetingGroup() {
        return this.meetingGroup;
    }

    public void setMeetingGroup(String meetingGroup) {
        this.meetingGroup = meetingGroup;
    }

    public String getMeetingName() {
        return this.meetingName;
    }

    public void setMeetingName(String meetingName) {
        this.meetingName = meetingName;
    }

    public long getMeetingTime() {
        return this.meetingTime;
    }

    public void setMeetingTime(long meetingTime) {
        this.meetingTime = meetingTime;
    }
}
